package net.wanho.controller;

import lombok.RequiredArgsConstructor;
import net.wanho.po.BuyList;
import net.wanho.service.BuyListService;
import net.wanho.vo.R;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author：汤小洋
 * Date：2024-10-23 17:18
 * Description：<描述>
 */
@RestController
@RequestMapping("/purchase")
@RequiredArgsConstructor
public class PurchaseController {

    private final BuyListService buyListService;

    @PostMapping("/in-warehouse-record-add")
    public R inWarehouseRecordAdd(@RequestBody BuyList buyList) {
        buyListService.inWarehouseRecordAdd(buyList);
        return R.success("入库单添加成功！");
    }
}
